/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mailprotocol;

import gui.PantallaPrincipal;
import log.ExpertoLog;
import logica.ControladorPrincipal;
import logica.ObservadorConsola;
import logica.SuscriptorLog;

/**
 *
 * @author Leandro
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        ExpertoLog.initializeLogger("log4j.xml");
        PantallaPrincipal pantalla=new PantallaPrincipal(new ControladorPrincipal());
        pantalla.setVisible(true);
        ObservadorConsola logConsola=new ObservadorConsola();
        SuscriptorLog.getInst().addObserver(logConsola);
    }

}
